package com.yoake.campus.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yoake.common.annotation.Excel;
import com.yoake.common.core.domain.BaseEntity;

/**
 * 内容管理对象 campus_content
 * 
 * @author yoake
 * @date 2024-12-10
 */
public class CampusContent extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 内容主键，唯一标识每一条内容 */
    private Long contentId;

    /** 发布内容的用户ID */
    @Excel(name = "发布内容的用户ID")
    private Long userId;

    /** 内容所属类别的ID */
    @Excel(name = "内容所属类别的ID")
    private Long categoryId;

    /** 用户发表的具体内容文本 */
    @Excel(name = "用户发表的具体内容文本")
    private String content;

    /** 内容的状态：0-待审核, 1-正常显示, 2-已下架, 3-审核未通过被拒绝 */
    @Excel(name = "内容的状态：0-待审核, 1-正常显示, 2-已下架, 3-审核未通过被拒绝")
    private Integer status;

    /** 内容的类型：0-纯文字, 1-包含图片, 2-包含视频 */
    @Excel(name = "内容的类型：0-纯文字, 1-包含图片, 2-包含视频")
    private Integer type;

    /** 关联的文件数量 */
    private Long fileCount;

    /** 内容收到的点赞数量，默认为0 */
    @Excel(name = "内容收到的点赞数量，默认为0")
    private Long loveCount;

    /** 是否匿名发布：0-非匿名，1-匿名 */
    @Excel(name = "是否匿名发布：0-非匿名，1-匿名")
    private Integer isAnonymous;

    /** 逻辑删除标志：0-未删除，1-已删除 */
    private Integer delFlag;

    /** 创建该内容的用户ID */
    private Long createUser;

    /** 最后更新该内容的用户ID */
    private Long updateUser;

    public void setContentId(Long contentId) 
    {
        this.contentId = contentId;
    }

    public Long getContentId() 
    {
        return contentId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setFileCount(Long fileCount) 
    {
        this.fileCount = fileCount;
    }

    public Long getFileCount() 
    {
        return fileCount;
    }
    public void setLoveCount(Long loveCount) 
    {
        this.loveCount = loveCount;
    }

    public Long getLoveCount() 
    {
        return loveCount;
    }
    public void setIsAnonymous(Integer isAnonymous) 
    {
        this.isAnonymous = isAnonymous;
    }

    public Integer getIsAnonymous() 
    {
        return isAnonymous;
    }
    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }
    public void setCreateUser(Long createUser) 
    {
        this.createUser = createUser;
    }

    public Long getCreateUser() 
    {
        return createUser;
    }
    public void setUpdateUser(Long updateUser) 
    {
        this.updateUser = updateUser;
    }

    public Long getUpdateUser() 
    {
        return updateUser;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("contentId", getContentId())
            .append("userId", getUserId())
            .append("categoryId", getCategoryId())
            .append("content", getContent())
            .append("status", getStatus())
            .append("type", getType())
            .append("fileCount", getFileCount())
            .append("loveCount", getLoveCount())
            .append("isAnonymous", getIsAnonymous())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .append("createTime", getCreateTime())
            .append("createUser", getCreateUser())
            .append("updateTime", getUpdateTime())
            .append("updateUser", getUpdateUser())
            .toString();
    }
}
